package com.prs.crm.domain.oa.bookmanager;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：2012-5-2 9:59:52 图书类别
 */
@Entity
@Table(name="oa_booktype")
public class BookType extends BaseEntity {

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String typeName;
	private String remark;
	@OneToMany(fetch=FetchType.LAZY,mappedBy="bookType")
	private Set<BookRegister> bookRegister;
	
	public Set<BookRegister> getBookRegister() {
		return bookRegister;
	}
	public void setBookRegister(Set<BookRegister> bookRegister) {
		this.bookRegister = bookRegister;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTypeName() {
		return typeName;
	}
	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
